package org.jeecg.modules.procurement.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.procurement.entity.BussMaterialProcurement;
import org.jeecg.modules.procurement.vo.BussMaterialProcurementPage;
import org.jeecg.modules.procurement.vo.BussMaterialProcurementPageInfo;

/**
 * @Description: 原料采购订单
 * @Author: jeecg-boot
 * @Date:   2024-06-06
 * @Version: V1.0
 */
public interface BussMaterialProcurementMapper extends BaseMapper<BussMaterialProcurement> {

    IPage<BussMaterialProcurementPage> pagelist(Page<BussMaterialProcurementPage> page,@Param(Constants.WRAPPER) QueryWrapper<BussMaterialProcurementPage> queryWrapper);

    /**
     * 分页-以详细表为主表
     * @param page
     * @param queryWrapper
     * @return
     */
    IPage<BussMaterialProcurementPage> procurementPage(Page<BussMaterialProcurementPage> page,@Param(Constants.WRAPPER) QueryWrapper<BussMaterialProcurementPage> queryWrapper);

    /**
     * 到货情况
     * @param page
     * @param queryWrapper
     * @return
     */
    IPage<BussMaterialProcurementPageInfo> arrayInfo(Page<BussMaterialProcurementPageInfo> page,@Param(Constants.WRAPPER) QueryWrapper<BussMaterialProcurementPageInfo> queryWrapper);
}
